package online.yangcloud.common.tools;

import org.redisson.api.RedissonClient;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author zhuboyang
 * @since 2023年11月27 14:34:29
 */
@Component
public class GlobalTools {

    @Resource
    private FileTools fileTools;

    @Resource
    private RedisTools redisTools;

    @Resource
    private RedissonClient redissonClient;

    public FileTools acquireFile() {
        return fileTools;
    }

    public RedisTools acquireRedis() {
        return redisTools;
    }

    public RedissonClient acquireRedisson() {
        return redissonClient;
    }

}
